package com.like.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.like.fragment.DrugHelperAdultFragment;
import com.like.fragment.DrugHelperChildFragment;

public class TwoTabPagerAdapter extends FragmentPagerAdapter {

    private DrugHelperAdultFragment mAdultFragment;
    private DrugHelperChildFragment mChildFragment;
    private Fragment[] mFragments;

    public TwoTabPagerAdapter(FragmentManager fm) {
        super(fm);
    }

    public void setFragments(Fragment... fragments) {
        this.mFragments = fragments;
    }

    @Override
    public Fragment getItem(int position) {
        return mFragments[position];
    }

    @Override
    public int getCount() {
        return mFragments.length;
    }
}
